

import { request } from '@/utils/request'
export default ({
    getPersonalData() {
        return request("/sign/config/profile/get", "get")
    },
    updatePersonalData(data) {
        return request("/sign/config/profile/update", "post", data)
    },
    updatePasword(data) {
        return request("/sign/config/changePassword", "post", data)
    },
    getThirdPartyLogin() {
        return request("/sign/config/socialsignon/fetch", "get")
    },
    deleteAppApi(ids) {
        return request("/sign/config/socialsignon/delete?ids=" + ids, "post")
    },
    bindAppApi(provider) {
        return request("/sign/logon/oauth20/authorize/" + provider, "get")
    },
    timeTokenApi(val) {
        return request("/sign/config/timebased?generate=" + val, "get")
    },
    callback(provider, data) {
        return request("/sign/logon/oauth20/callback/" + provider + '?_allow_anonymous=true', "get", data)
    },
    bindProvider(provider, data) {
        return request("/sign/logon/oauth20/bind/" + provider + '?_allow_anonymous=true', "get", data )
    }
})
